package com.codinghero.zqlb.match;

import java.util.Comparator;

public class SoccerMatchHotComparator implements Comparator<SoccerMatch> {

	@Override
	public int compare(SoccerMatch o1, SoccerMatch o2) {
		int focus1 = o1.getTypeFocused() * 2 + o1.getTeam1Focused()
				+ o1.getTeam2Focused();
		int focus2 = o2.getTypeFocused() * 2 + o2.getTeam1Focused()
				+ o2.getTeam2Focused();
		return focus1 - focus2;
	}

	
}
